package com.zsrt.java.day20170104.wrl.demo02;

public class StartDemo {
	
	/**
	 * 
	 * 		1 2 3 4 5 6 7 8	inner
	 * 	  1 * * * * * * * *
	 * 	  2 *             *
	 * 	  3 *             *
	 * 	  4 * * * * * * * *
	 * 	outer
	 */
	public static void main(String[] args) {
		for(int outer=1; outer<=4; outer++){
			for(int inner=1; inner<=8; inner++){
				if(inner == 1 || inner == 8){
					System.out.print("* ");
				}else{
					if(outer == 1 || outer == 4){
						System.out.print("* ");
					}else{
						System.out.print("  ");
					}
				}
			}
			System.out.println();
		}
	}

}
